<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>失败和做不到是正常的事情</h1>

       <!-- <a th:href="@{http://www.baidu.com}">跳转1</a>
        <a th:href="@{http://localhost:8989/index/url/{na}(na=${name})}">跳转2</a>
-->

   <!--     <p th:text="${#request.getAttribute('request')}"></p>
        <p th:text="${#session.getAttribute('session')}"></p>
        <p th:text="${#locale.country}"></p>
-->
        <!--格式化时间-->
        <p th:text="${#dates.format(date,'yyyy-MM-dd HH:mm:ss')}"></p>
        <!--创建时间，精确到天,秒-->
        <p th:text="${#dates.createToday()}"></p>
        <p th:text="${#dates.createNow()}"></p>
        <!--判断是否为空-->
        <p th:text="${#strings.isEmpty(name)}"></p>
        <!--判断list是否为空-->
        <p th:text="${#lists.isEmpty(users)}"></p>
        <!--输出字符串的长度-->
        <p th:text="${#strings.length(name)}"></p>
        <p th:text="${#strings.concat(name,name,name)}"></p>//concat拼接
        <p th:text="${#strings.randomAlphanumeric(count)}"></p>
</body>

</html>